import router from '../router/router'
import React from 'react';
import { HashRouter  as Router, Route } from "react-router-dom";


function App() {
  
    return (
      <Router>
        {router.map((item, idx) => {
          return (
            <Route
              key={idx}
              path={item.path}
              exact
              component={item.component}
            />
          )
        })}
      </Router>
    );
  }
  
  export default App;